Repository navigation
fix(lint)!: a _relatedLists translation key over a list the .custom arrangement hides or re-states without a label is refused - #37600
Conversation
…ement hides or re-states without a label Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01L6bhgUpnvPnJ1hR74pUrVj
…ts key refusal Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01L6bhgUpnvPnJ1hR74pUrVj
Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01L6bhgUpnvPnJ1hR74pUrVj
📓 Docs Drift Check9 anchor(s) derived from 2 changed package(s); no hand-written page names any of them, so this run has nothing to list — not a clean bill of health. This check sees only pages that NAME a derived anchor: one that documents this change in prose, or enumerates it in an authoring dialect, names none and stays invisible to it on every run. What this run could not see
Coarse fallback — 177 page(s) merely mention a changed package (the pre-#9192 predicate, kept for the deliberately-wide backstop): Which tree this was computed onThis run read A worktree cut from an older # while this PR is open — GitHub drops the merge commit once it closes
git fetch origin dd7ecdb473c5a3b732b84b7b9c2685e5f0595265 && git checkout dd7ecdb473c5a3b732b84b7b9c2685e5f0595265
# afterwards, rebuild it from the two parents, which stay fetchable
git fetch origin 54d6726c09019bd1d9da29b7aee3fb9e907dbb0a b18f2ca55b4d35252852aaf90aa2751dc32d5f06 && git checkout -B drift-repro 54d6726c09019bd1d9da29b7aee3fb9e907dbb0a && git merge --no-ff b18f2ca55b4d35252852aaf90aa2751dc32d5f06
node scripts/docs-audit/affected-docs.mjs --json 54d6726c09019bd1d9da29b7aee3fb9e907dbb0a |
|
repo:objectstack#2 · os-sales · session_01L6bhgV6i8jfWwSXjpWJrjA Contract reviewServed-tier: Read for this record: card #36595 with every comment (route 7120211674, release 7120821760, claim 7195029524, dev report 7196396955), the PR body and its six files, the net diff against ① Derived judgments
② Semver levelThe changeset grades ③ Boundary flags
④ Design judgmentThe narrowing itself. Against the published rule on M1 (must-fix) — the entry is filed in the step into protocol 18, and the change ships on protocol 19. The file is named S1 (should-fix) — the fold does not apply one arrangement the way the registry does, and refuses a key the served object reads. S2 (should-fix) — the entry's second remedy is not true as written. N1 (nit) — for a bare or unlabelled re-statement the finding says the list "carries no The implementing files otherwise agree with the entry: M1 is a FAIL. M1, S1 and S2 each move the head, so the fix earns a delta review and a battery on the new head. Implemented-by: VERDICT: FAIL |
…rowing at step 19 Contract review on the #36595 change: - The migration entry moves to step 19 (PROTOCOL_VERSION is 19.0.0), so `migrate meta --from 18` lists it. - Each arrangement strips what it covers from the owner's list and the placements first, then adds its own labels and hidden entries, as the registry reads it: one entry never strips a sibling's label. - A key over an owner-labelled list the arrangement re-states without a label names the arrangement, and its hint points at the owner's label. - The remedy text names the owner's own label: an object read translates a label only while it equals the packaged one. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01L6bhgUpnvPnJ1hR74pUrVj
|
repo:objectstack#2 · os-sales · session_01L6bhgV6i8jfWwSXjpWJrjA Contract reviewServed-tier: Delta round on the earlier record 7196757117 (head 61beb99; findings M1, S1, S2, N1). Read for this record: card #36595 with every comment (route 7120211674, release 7120821760, claim 7195029524, dev reports 7196396955 and 7197867160), the earlier record, the PR body and its six files, the net diff against ① Derived judgments
② Semver levelUnchanged in grade and still matching what the diff publishes: ③ Boundary flags
④ Design judgment
The rest of the delta agrees with the entry, sentence by sentence. Tried against the two-pass fold and found consistent with the registry: an entry both hidden and labelled (hidden, no label); one list written labelled and bare in one arrangement (the label is served and the key resolves); a dotted relationship beside a labelled owner entry for its bare child (not covered, carried over, the key resolves); an empty No must-fix, no should-fix.
Nits only: none of them changes a verdict of the rule or a sentence of the contract. This round ends here. The PR is Tier H and still needs its approver. Implemented-by: VERDICT: PASS |
|
repo:objectstack#2 · os-sales · session_01L6bhgV6i8jfWwSXjpWJrjA 席位核对 — ACCEPT · head b18f2ca · card #36595 · area s2-ux-T · 2026-11-26T16:49ZL1 checklist
Tier: H (narrowing). Landing: hand-off to the approver by the next stroke; ⛔ the seat does not merge. |
|
repo:objectstack#2 · os-sales · session_01L6bhgV6i8jfWwSXjpWJrjA Tier H hand-off · 2026-11-26T16:50Z · head b18f2ca · approver 维护者速读
|
Requested by Sales · project thread
Fixes #36595
Clause-②: no (narrowing)
Metadata-protocol: narrowed
Skills-docs: follow-up #37620
维护者速读
os validate。如果应用的定制包(.custom)把某个相关列表标签页隐藏了,或者改成不带标题的写法,而翻译包里还留着这个标签页标题的译文,现在会报错,提示这条译文没人读。以前这种译文校验能通过,但页面上本来就不会显示它。What changes
The reading (at
origin/main): the registry applies the paired.customarrangement after the owner's tab list and everyplaceentry, and each arrangement entry REPLACES every entry it covers (packages/objectql/src/registry-custom-arrangement.ts, therelatedListsstep;relatedListNameCovers: the same list, or a bare child for every list of that child).{ list, hidden: true }leaves no tab; a bare name or an entry with nolabelleaves the tab titled by the child FK'srelatedListTitle. The lint fold (validate-translation-references.ts) checked the owner's labelled set first andcontinued before the hidden check, andobject-graph.tsdropped the arrangement's bare names (.filter(isRec)). So_relatedLists.<list>over an owner-labelled list the arrangement hides or names bare was accepted though nothing reads it.packages/lint/src/object-graph.ts:VisibleObjectExtensiongainsrelatedListArrangement, the extension'srelatedListsas written, bare names included (undefinedwhen it writes none).relatedListEntriesis unchanged.packages/lint/src/validate-translation-references.ts: per target, placements are folded first (the arrangement's own entries skipped), then every extension's arrangement in fold order, each in two passes as the registry reads it: first its entries drop every label (and earlierhidden) they cover, then it adds its own labelled entries and its hidden ones. So one entry never strips the label a sibling of the same arrangement gives ([{ list: 'event.related_to', label }, 'event']resolves in either order). The hidden message now matches by cover, so{ list: 'event', hidden: true }namesevent.related_toas hidden. A key over an owner-labelled list the arrangement re-states without a label names the arrangement, and its hint (like the hidden one) points at the owner'slabel.translation-related-list-key-under-arrangement-refusedat step 19 (packages/spec/src/migrations/entries/semantic/19.…;PROTOCOL_VERSIONis 19.0.0, somigrate meta --from 18lists it), and the changeset is markedregistered. No D2 conversion: dropping the key or re-stating the arrangement's entry with the owner's own label is the author's call. The remedy names the owner's label because an object read translates a label only while it still equals the packaged one; its surface names the labelled bare child{ list: 'event', label }covering the owner'sevent.related_to._relatedListsrow of the reference-rule table incontent/docs/protocol/kernel/i18n-standard.mdxstates the arrangement's effect.@objectstack/lintminor with the BREAKING note,@objectstack/specpatch (the ledger entry).Small calls made here (no card), per seat route 7120211674 (option A, item 4 only):
relatedListsas an arrangement, as it already did forhidden. The registry serves only the object's own pair and names the other writers, which is a separate refusal at publish /os validate. This fold does not re-derive which package is the pair.os i18n extract(i18n-walk.ts) still scaffolds_relatedLists.<list>from the owner's labelled entries and reads no extension, as before this change. In a stack that holds both the owner and its.custompair, it can scaffold a key this rule now refuses. That universe difference predates this PR (the extractor reads no extension at all). It is filed with the object-read pair-catalog gap as review follow-ups of PR #37600 #37622, not widened in this PR.Why
The card's item 4 (from the contract review of #36574): a permissive lint that let a translator ship a title the record page never shows. Items 1–3 landed in #36813.
Verification
packages/lint/src/i18n-related-lists-arrangement-36595.test.ts(new, 7 tests):{ list }or as{ list, hidden: false }, is refused with the no-label message, which names the.customarrangement.61beb993c). A sibling cancelling ahiddenentry has no pin: a list both shown and hidden in one arrangement is refused at save by the object schema (refuseContradictoryRelatedListEntries).origin/main's two source files, 4 of the 6 fail; with the change, 6/6 pass.i18n-related-lists-label-36528.test.ts(the existing_relatedListspins, thehidden: trueone included): unchanged and passing.b18f2ca55(contract-review fixes;61beb993cbefore):@objectstack/lintfull vitest: 237 files, 9,687 passed.tsc --noEmitand eslint on the touched files: exit 0.@objectstack/specvitestsrc/migrations: 201/201.check:generated --fix: all up to date.gen:migration-registrypicks up the entry.check:upgrade-guide: ok.node scripts/check-adr-0087-registration.mjs --base origin/main: ✓ registered.check-empty-changeset: ✓.overlap-check: exit 0.61beb993c, os-dev report 7196396955 (one load timeout in an unrelated install-local case, green when rerun alone). On the final headb18f2ca55: VERDICT command-exit 0, Test Files 488/491 (3 skipped), Tests 4135/4203 (68 skipped), no failure; os-dev report 7197867160.Contract review (L2) is owed before landing: the diff declares
Clause-②: no (narrowing)and adds apackages/spec/src/**ledger entry. Tier H: an authorized approval is needed to land.Human Minimum
packages/specholds no runtime logic.pnpm lintpasses.main, one pull request.packages/spectouched: its generated artifacts are regenerated and committed.content/docs/references/,packages/*/CHANGELOG.mdorcontent/docs/releases/.🤖 Generated with Claude Code
https://claude.ai/code/session_01L6bhgUpnvPnJ1hR74pUrVj
Generated by Claude Code